var gulp = require("gulp");
var pug = require("gulp-pug");


gulp.task('pug', function() {

	return gulp.src(['src/**/*.pug', '!src/**/layout.pug', '!src/include/*.pug'])
		.pipe(pug({
			pretty: true
		}))
		.pipe(gulp.dest('dist'));
});

gulp.task('copyImage', function() {
	return gulp.src(['src/**/*.png', 'src/**/*.jpg'])
		.pipe(gulp.dest('dist'));
});

gulp.task('less', function() {

});

gulp.task('copyCss', function() {
	return gulp.src('src/**/*.css')
		.pipe(gulp.dest('dist'));
});

gulp.task('copyJs', function() {
	return gulp.src('src/**/*.js')
		.pipe(gulp.dest('dist'));
});

gulp.task('default', function() {
	gulp.watch('src/**/*.css', ['copyCss']);
	gulp.watch('src/**/*.pug', ['pug']);
	gulp.watch('src/images', ['copyImage']);
	gulp.watch('src/**/*.js', ['copyJs']);
});